/**
 * 
 */
package org.zgstudio.ddlchecker;

import java.net.URL;
import java.util.HashMap;
import java.util.Map;

/**
 * @author zhguo
 *
 */
public class Link {
    private URL url;
    
    private Map<String, Object> properties = new HashMap<String, Object>();
    
    public Link(URL url) {
        this.url = url;
    }
    
    public static Link construct(URL url) {
        return new Link(url);
    }
    
    public Object getProperty(String prop) {
        return properties.get(prop);
    }
    
    public void setProperty(String prop, Object value) {
        properties.put(prop, value);
    }

    public void setUrl(URL url) {
        this.url = url;
    }

    public URL getUrl() {
        return url;
    }
}
